<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h1 {
            position: relative;
            color: #6b6868;
            font-size: 120px;
        }

        h1::after {
            content: attr(data-txt);
            top: 0;
            left: 0;
            position: absolute;
            color: transparent;
            background-image: linear-gradient(to left, rgb(0, 174, 255), rgb(0, 255, 85), rgb(212, 0, 255), rgb(0, 204, 255), rgb(238, 255, 0));
            background-clip: text;
            -webkit-background-clip: text;
            clip-path: circle(80px at 0% 50%); 
            animation: move 3s linear alternate infinite;
        }

        @keyframes move {
            0% {
                clip-path: circle(80px at 0% 50%);
            }

            100% {
                clip-path: circle(80px at 100% 50%);
            }
        }

        @-webkit-keyframes masked-animation {
            0% {
                background-position: 0 0
            }

            to {
                background-position: -100% 0
            }
        }

        p {
            margin: 200px auto;
            width: 400px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            font-weight: 800;
            font-size: 52px;
            background-image: -webkit-linear-gradient(left, #cddc39, #ff9800 25%, #cddc39 50%, #ff9800 75%, #cddc39);
            -webkit-text-fill-color: transparent;
            color: transparent;
            -webkit-background-clip: text;
            -webkit-background-size: 200% 100%;
            -webkit-animation: masked-animation 2s infinite linear;
        }

        p:hover {
            -webkit-animation: masked-animation 0.5s infinite linear;
        }
    </style>
</head>

<body>
    <h1 data-txt="聚光灯文字">聚光灯文字</h1>
    <p >腾讯前端大会</p>
</body>

</html>